package com.csl.testjetpack.data.bean

import android.os.Parcelable
import androidx.room.ColumnInfo
import androidx.room.Embedded
import androidx.room.Entity
import androidx.room.PrimaryKey
import kotlinx.android.parcel.Parcelize

@Entity(tableName = "RemoteInfo")
@Parcelize
data class RemoteInfo(
    var name: String,
    var content: String

):Parcelable {
    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "id")
    var id: Long = 0


//    //嵌套字段
//    @Embedded
//    var btnInfo: RemoteButtonInfo? = null




    override fun toString(): String {
        return "RemoteInfo(name='$name', content='$content', id=$id)"
    }


}